package com.xhapi.pojo.dto.handwrite;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.Getter;

import java.util.List;

// Block DTO
@Data
public class Block {
    private String type;

    private List<Line> line;
    // Line DTO (nested inside Block)
    @Data
    public static class Line {
        @JsonProperty("confidence")
        private int confidence;
        private List<Word> word;
        // Word DTO (nested inside Line)
        @Data
        public static class Word {
            @JsonProperty("content")
            private String content;
        }
    }
}

